-- GENERATED SPELL FOR [Unstoppable Abomination] --


function spell0_23562(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(28468,pUnit)
pUnit:RegisterEvent('Sorts_23562', 550, 1)
end

function spell1_23562(pUnit, Event) --@Mortal Wound,n/a--
pUnit:FullCastSpellOnTarget(28467,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23562', 15293, 1)
end

function Sorts_23562(pUnit, Event)
local choix_sorts_23562 = math.random(0, 1)
if choix_sorts_23562 == 0 then
pUnit:RegisterEvent('spell0_23562', 1, 1)
end
if choix_sorts_23562 == 1 then
pUnit:RegisterEvent('spell1_23562', 1, 1)
end
end

function mob23562_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23562', math.random(1500, 3000), 1)
end

function mob23562_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23562_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23562_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23562, 1, 'mob23562_Action')
RegisterUnitEvent(23562, 2, 'mob23562_Leave')
RegisterUnitEvent(23562, 3, 'mob23562_Kill')
RegisterUnitEvent(23562, 4, 'mob23562_Die')
